<ul>
    <?php
        $am = $this->router->fetch_method();

        if ($am = 'cipatravel'):

            $ID = idFromUrl($this->uri->segment(3), '-');

            switch ($ID) {

                case 7:
                    $am = 'about';
                    break;

                case 8:
                    $am = 'customer-service';
                    break;

                case 17:
                    $am = 'how-to-make-reservation';
                    break;

                case 20:
                    $am = 'owners-cooperation';
                    break;

                case 18:
                    $am = 'payment-options';
                    break;

                case 19:
                    $am = 'terms';
                    break;
                
                case 43:
                    $am = 'faq';
                    break;

                default:
                    $am = 'links';
            }

        endif;
    ?>
    <li class="<?= $am == 'about' ? 'active' : ''; ?>" ><a href="<?= lang_url('cipatravel/about-7') ?>"><?= lang('top.about') ?></a></li>
    <li class="<?= $am == 'customer-service' ? 'active' : ''; ?>" ><a href="<?= lang_url('cipatravel/customer-service-8') ?>"><?= lang('top.servcie'); ?></a></li>
    <li class="<?= $am == 'how-to-make-reservation' ? 'active' : ''; ?>" ><a href="<?= lang_url('cipatravel/how-to-make-reservation-17') ?>"><?= lang('foot.make_res'); ?>?</a></li>
    <li class="<?= $am == 'payment-options' ? 'active' : ''; ?>" ><a href="<?= lang_url('cipatravel/payment-options-18') ?>"><?= lang('foot.payment'); ?></a></li>
    <li class="<?= $am == 'terms' ? 'active' : ''; ?>" ><a href="<?= lang_url('cipatravel/terms-19') ?>"><?= lang('foot.terms'); ?></a></li>
    <li class="<?= $am == 'owners-cooperation' ? 'active' : ''; ?>" ><a href="<?= lang_url('cipatravel/owners-cooperation-20') ?>"><?= lang('foot.owners'); ?></a></li>
    <li class="<?= $am == 'links' ? 'active' : ''; ?>" ><a href="<?= lang_url('cipatravel/links') ?>"><?= lang('foot.links'); ?></a></li>
    <li class="<?= $am == 'faq' ? 'active' : ''; ?>" ><a href="<?= lang_url('cipatravel/faq-43') ?>">FAQ</a></li>
</ul>